var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var group = [
    [],
    [],
    [],
    []
];

function parse(arr, group) {
    var alen = arr.length,
        glen = group.length;
    //console.log('arr:%s,group:%s', alen, glen);
    //console.log('random:%s,', Math.random() * alen, Math.floor(1.9));
    for (var i = 0; i < alen; i++) {
        var index = Math.floor(Math.random() * arr.length),
            n = arr.splice(index, 1)[0];
        //console.log('index:%s,n:%s,-->alen', index, n, arr.length);
        console.log('i % glen', i % glen);
        group[i % glen].push(n);
    }
    return group;
}

console.log(parse(arr, group));
